import request from '@/utils/request'

//创建广告
export function crateAdvertising (advertising) {
  return request({
    url: '/advertising/add',
    method: 'post',
    data:advertising
  })
}

//修改广告
export function updateAdvertising (advertising) {
  return request({
    url: '/advertising/update',
    method: 'post',
    data:advertising
  })
}

//查询广告
export function searchAdvertising (param) {
    return request({
        url:'/advertising/search',
        method:'post',
        data:param
    })
}

//删除广告
export function deleteAdvertising (param) {
  return request({
      url:'/advertising/delete',
      method:'post',
      data:param
  })
}

// 单查广告
export function findAdvertisingById(advertisingId) {
  return request({
    url:'/advertising/findOne',
    method:'post',
    data:advertisingId
  })
}



